package com.atguigu.auth.service;


import com.atguigu.model.system.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2023-04-15
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 更新用户状态
     *
     * @param id     {@link Long}
     * @param status {@link Integer}
     */
    void updateStatus(Long id, Integer status);

    /**
     * 根据用户名进行查询
     *
     * @param username {@link String}
     * @return {@link SysUser}
     */
    SysUser getUserByUserName(String username);

    /**
     * 获取当前用户
     *
     * @return {@link Map<String, Object>}
     */
    Map<String, Object> getCurrentUser();
}
